package rd.hardcore.ui.speakers 
{
	import rd.hardcore.ui.controls.Baffle_FC;
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class Baffle extends Baffle_FC
	{
		
		public function Baffle() 
		{
			
		}
		
		public function pumpItUp(level:Number):void
		{
			var scaleTo:Number = 1 + .2 * (level / 255);
			
			//Tweener.addTween([membrane, forReflect], { scaleX:scaleTo, scaleY:scaleTo, time:.2 } );
			membrane.scaleX = membrane.scaleY = forReflect.scaleX = membrane.scaleY = scaleTo;
			scaleTo = 1 + .33 * (level / 255);
			//Tweener.addTween(center, { scaleX:scaleTo, scaleY:scaleTo, time:.2 } );
			center.scaleX = center .scaleY = scaleTo;
			// effet bombé
			forReflect.alpha = .33 * (level / 255);
		}
		
	}

}